
#let indent = h(2em)

// 古文样式
#let guwen-style(body) = {
  set text(font: "kai", size: 1.1em, fill: rgb("#0c1431"))
  indent 
  body
}

// 译文样式
#let yiwen-style(body) = {
  set text(font: "SimSun", size: 1em)
  indent
  body
}



// 古文文档，使用两列多行网格布局
#let guwendoc(..words) =  {
  grid(
    columns: (45%, 50%),
    gutter: 5%,
    ..words.pos().chunks(2).map(((a,b)) => (guwen-style(a), yiwen-style(b))).flatten()
  )
}

